Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/modularize #407

Merged
merged 149 commits into from
Feb 19, 2024
Merged

Feat/modularize #407

merged 149 commits into from
Feb 19, 2024

Conversation

guidiaz
Copy link
Collaborator

@guidiaz guidiaz commented Feb 1, 2024

No description provided.

Supporting data request callbacks
Comment on lines 14 to 18
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

contracts/libs/Create3.sol Show resolved Hide resolved
@@ -4,28 +4,23 @@

pragma solidity >=0.8.0 <0.9.0;

import "../patterns/ERC165.sol";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not using ERC165, could we delete it?

README.md Show resolved Hide resolved
README.md Outdated
- **`hash()`**:
- _Description_:
- Returns SHA256 hash of Witnet Data Request as CBOR-encoded bytes.
- Make sure you run an ETH/RPC provider running at the specified `host` and `port`, capable of intercepting `eth_sendTransaction` calls (e.g. [web3-ethrpc-gateway](https://github.io/witnet/web3-jsonrpc-gateway)).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Make sure you run an ETH/RPC provider running at the specified `host` and `port`, capable of intercepting `eth_sendTransaction` calls (e.g. [web3-ethrpc-gateway](https://github.io/witnet/web3-jsonrpc-gateway)).
- Make sure you run an ETH/RPC provider for the specified `host` and `port`, capable of intercepting `eth_sendTransaction` calls (e.g. [web3-ethrpc-gateway](https://github.io/witnet/web3-jsonrpc-gateway)).

package.json Show resolved Hide resolved
Comment on lines +70 to +73
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we aren't using this eslint files but eslint-config-standard, could we remove the other ones?

package.json Outdated
"eth-gas-reporter": "^0.2.27",
"eth-helpers": "^1.3.0",
"hardhat": "^2.19.5",
"js-sha256": "^0.11.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we using this dependency?

Suggested change
"js-sha256": "^0.11.0",

package.json Show resolved Hide resolved
package.json Outdated
"truffle": "^5.11.5",
"truffle-assertions": "^0.9.2",
"truffle-flattener": "^1.6.0",
"typescript": "latest"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any typescript file?

Suggested change
"typescript": "latest"

if (os.type() === "Windows_NT") {
exec("del /s /q artifacts\\*.dbg.json")
} else {
exec("find ./artifacts -name *.dbg.json -exec rm -r {} \\;")
Copy link
Member

@Tommytrg Tommytrg Feb 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exec("find ./artifacts -name *.dbg.json -exec rm -r {} \\;")
exec('find ./artifacts -name "*.dbg.json" -exec rm -r {} \\;')

contracts/libs/Create3.sol Show resolved Hide resolved
pragma solidity >=0.6.0 <0.9.0;

import "../interfaces/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or if we want to keep a file for each of the contracts from openzeppelin, do the same for IERC20.sol

package.json Show resolved Hide resolved

/// @notice Reference to Witnet Data Requests Bytecode Registry
WitnetBytecodes immutable public override(IWitnetRequestFactory, WitnetRequestTemplate) registry;
/// @notice Reference to the Witnet Request Board that all templates built out from this factory will refer to.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// @notice Reference to the Witnet Request Board that all templates built out from this factory will refer to.
/// @notice Reference to the Witnet Request Board that all templates built out from this factory will refer to.

@guidiaz guidiaz merged commit 8224cb0 into witnet:2.0.x Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants